using UnityEngine;

namespace Crosstales.OnlineCheck.Model
{
    // [Assembly-CSharp-firstpass.dll].Crosstales.OnlineCheck.Model.NetworkInterface
    [Serializable]
    public class NetworkInterface
    {
        // Fields
        public readonly string Id;
        public readonly string Name;
        public readonly System.Net.NetworkInformation.NetworkInterfaceType Type;
        public readonly System.Net.IPAddress Address;
        public readonly System.Net.IPAddress Mask;
        public readonly string MacAddress;
        public readonly System.Net.IPAddress Gateway;
        public readonly long Speed;
        public readonly System.Net.NetworkInformation.OperationalStatus Status;
        
        // Methods
        public NetworkInterface(string id, string name, System.Net.NetworkInformation.NetworkInterfaceType type, System.Net.IPAddress address, System.Net.IPAddress mask, string macAddress, System.Net.IPAddress gateway, long speed, System.Net.NetworkInformation.OperationalStatus status)
        {
            val_1 = new System.Object();
            this.Id = id;
            this.Name = val_1;
            this.Type = type;
            this.Address = address;
            this.Mask = mask;
            this.MacAddress = macAddress;
            this.Gateway = gateway;
            mem[1152921504930430472] = speed;
            mem[1152921504930430480] = status;
        }
        public override string ToString()
        {
            string val_25;
            System.Text.StringBuilder val_1 = 536893081;
            val_1 = new System.Text.StringBuilder();
            System.Text.StringBuilder val_2 = val_1.Append(value:  -1610594473);
            System.Text.StringBuilder val_3 = val_1.Append(value:  this.Name);
            System.Text.StringBuilder val_4 = val_1.Append(value:  -1610612535);
            System.Text.StringBuilder val_5 = val_1.Append(value:  536890035);
            System.Text.StringBuilder val_6 = val_1.Append(value:  -1610611767);
            System.Text.StringBuilder val_7 = val_1.Append(value:  -1610609913);
            System.Text.StringBuilder val_8 = val_1.Append(value:  this.Address);
            val_25 = 27482336;
            if(this.Status == 1)
            {
                    System.Text.StringBuilder val_9 = val_1.Append(value:  -1610612535);
                System.Text.StringBuilder val_10 = val_1.Append(value:  this.Mask);
                val_25 = 27482200;
            }
            
            System.Text.StringBuilder val_11 = val_1.Append(value:  val_25);
            System.Text.StringBuilder val_12 = val_1.Append(value:  -1610605561);
            System.Text.StringBuilder val_13 = val_1.Append(value:  this.MacAddress);
            System.Text.StringBuilder val_14 = val_1.Append(value:  -1610611733);
            if(this.Status == 1)
            {
                    System.Text.StringBuilder val_15 = val_1.Append(value:  -1610607231);
                System.Text.StringBuilder val_16 = val_1.Append(value:  this.Gateway);
                System.Text.StringBuilder val_17 = val_1.Append(value:  -1610611733);
                System.Text.StringBuilder val_18 = val_1.Append(value:  -1610603611);
                System.Text.StringBuilder val_21 = val_1.Append(value:  (this.Speed >> 18) + (this.Speed >> 63));
                System.Text.StringBuilder val_22 = val_1.Append(value:  -1610612475);
            }
            
            System.Text.StringBuilder val_23 = val_1.Append(value:  -1610603559);
            System.Text.StringBuilder val_24 = val_1.Append(value:  536890379);
            return (string)val_1;
        }
    
    }

}
